'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.post('/api/v1/pic/uploadFile', controller.v1.pic.uploadFile);
  router.post('/api/v1/pic/setConfig', controller.v1.pic.setConfig);
  router.post('/api/v1/pic/getConfig', controller.v1.pic.getConfig);
  router.post('/api/v1/pic/getFileList', controller.v1.pic.getFileList);
  router.post('/api/v1/pic/FileDelete', controller.v1.pic.FileDelete);
  router.post('/api/v1/pic/exportData', controller.v1.pic.exportData);
  router.post('/api/v1/pic/importData', controller.v1.pic.importData);
  router.post('/api/v1/pic/about', controller.v1.pic.about);
};